package com.qingke.Qiximybatis;

import java.util.Scanner;

public class QixiConsole {
	public QixiConsole(){
		
	}
	private static Scanner scanner = new Scanner(System.in);

	
	public static void println(String in){
		System.out.println(in);
	}
	public static void println(Object object){
		System.out.println(object);
	}
	public static String askUserInput(String input){
		System.out.println(input);
		while(true){
			String s = scanner.nextLine();
			if(!s.trim().equals("")){
				return s;
			}
			System.out.println("输入内容不能为空，请输入正确的格式！");
			System.out.println("cmd >");
		}
	}
	public static String nullUserInput(String input){
		System.out.println(input);
		String s = scanner.nextLine();
		return s;
	}
}
